﻿using GeneralServices.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApplication1.TestComposantV2
{
    public class DTOEmballage : IDTO
    {
        private string code_emballage;
        private string atelier;
        private string top_actif;
        private string top_emba_avec_hauteur;
        private string top_couvercle;
        private string flux_utilisation;
        private string code_plan;
        private string observation;
        private string marche;
        private byte[] image_emballage;
        private System.DateTime date_heure_creation;
        private System.DateTime date_heure_modif;
        private string resp_mise_a_jour;

        public string CODE_EMBALLAGE 
        { 
            get { return code_emballage; } 
            set { code_emballage = value; OnPropertyChanged("CODE_EMBALLAGE"); } 
        }
        public string ATELIER 
        { 
            get { return atelier; }
            set { atelier = value; OnPropertyChanged("ATELIER"); } 
        }
        public string TOP_ACTIF 
        { 
            get { return top_actif; }
            set { top_actif = value; OnPropertyChanged("TOP_ACTIF"); } 
        }
        public string TOP_EMBA_AVEC_HAUTEUR 
        {
            get { return top_emba_avec_hauteur; } 
            set { top_emba_avec_hauteur = value;
            OnPropertyChanged("TOP_EMBA_AVEC_HAUTEUR");
            } 
        }
        public string TOP_COUVERCLE { get { return top_couvercle; } set { top_couvercle = value; OnPropertyChanged("TOP_COUVERCLE"); } }
        public string FLUX_UTILISATION { get { return flux_utilisation; } set { flux_utilisation = value; OnPropertyChanged("FLUX_UTILISATION"); } }
        public string CODE_PLAN { get { return code_plan; } set { code_plan = value; OnPropertyChanged("CODE_PLAN"); } }
        public string OBSERVATION { get { return observation; } set { observation = value; OnPropertyChanged("OBSERVATION"); } }
        public string MARCHE { get { return marche; } set { marche = value; OnPropertyChanged("MARCHE"); } }
        public byte[] IMAGE_EMBALLAGE { get { return image_emballage; } set { image_emballage = value; OnPropertyChanged("IMAGE_EMBALLAGE"); } }
        public System.DateTime DATE_HEURE_CREATION { get { return date_heure_creation; } set { date_heure_creation = value; OnPropertyChanged("DATE_HEURE_CREATION"); } }
        public System.DateTime DATE_HEURE_MODIF { get { return date_heure_modif; } set { date_heure_modif = value; OnPropertyChanged("DATE_HEURE_MODIF"); } }
        public string RESP_MISE_A_JOUR { get { return resp_mise_a_jour; } set { resp_mise_a_jour = value; OnPropertyChanged("RESP_MISE_A_JOUR"); } }

        #region IDTO Membres

        public T GetObject<T>(object param) where T : class
        {
            return null;
        }

        public void SetObject<T>(T t, object param) where T : class
        {
        }

        #endregion

        #region INotifyPropertyChanged Membres

        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged(String name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(name));
        }
        #endregion

        #region ISerializableCSV Membres

        public List<object> exposeAttributes()
        {
            return new List<object>();
        }

        public bool importAttributes(string[] data)
        {
            return true;
        }

        public string exposeHeader(string separateur)
        {
            return "TOTO";
        }

        #endregion
    }
}
